﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MenuEmpresaCadastroVeiculo.aspx.cs"
    Inherits="VemTransporte.Views.UsuarioEmpresa.MenuEmpresaCadastroVeiculo" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>..:: STI ::..</title>
    <link href="../../Content/Estilo/stylo.css" rel="stylesheet" type="text/css" />
    <link href="../../Content/Site.css" rel="stylesheet" type="text/css" />
    <link href="../../Content/menuEmpresa_files/css3menu1/style.css" rel="stylesheet"
        type="text/css" />
    <style type="text/css">
        .style2
        {
            width: 382px;
        }
        .style3
        {
            width: 137px;
        }
    </style>
</head>
<body id="corpo2">
    <div id="topo">
        <asp:HyperLink ID="HyperLink8" runat="server" NavigateUrl="~/Views/UsuarioEmpresa/MenuEmpresa.aspx">
        <div id="logoTopo"></div>
        </asp:HyperLink>
        <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/Views/UsuarioEmpresa/LoginEmpresa.aspx">
        <div id="sair"></div>
        </asp:HyperLink>
    </div>
    <br />
    <form id="form1" runat="server">
    <table>
        <tr>
            <td>
                <table>
                    <tr>
                        <td>
                            <asp:Image ID="ImageEmpresaLogoTipo" runat="server" Height="138px" Width="137px"
                                ImageUrl="~/Content/Imagens/default_logo.jpg" />
                            <br />
                            <asp:HyperLink ID="HyperLink9" runat="server" NavigateUrl="~/Views/UsuarioEmpresa/MenuEmpresaLogoTipo.aspx">Alterar Logotipo</asp:HyperLink>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="Label3" runat="server" Text="Bem vindo," Font-Bold="True" ForeColor="#000099"></asp:Label>
                            <br />
                            <asp:Label ID="LabelNomeEmpresa" runat="server" Text="Label" Font-Bold="True" ForeColor="#000099"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <ul id="css3menu1" runat="server" class="topmenu">
                                <li runat="server" class="topfirst" id="liMenuEmpresaCadastro"><a href="MenuEmpresaCadastrar.aspx"
                                    title="Alterar Dados Empresa" style="width: 206px;">Alterar Dados Empresa</a></li>
                                <li runat="server" id="liMenuCadastroInicialEmpresa"><a href="CadastroInicialEmpresa.aspx"
                                    title="Cadastro de Empresa" style="width: 206px;">Cadastrar Empresa</a></li>
                                <li runat="server" id="liMenuAlterarEndEmpresa"><a href="MenuEmpresaEndereco.aspx"
                                    title="Alterar Endereço" style="width: 206px;">Alterar Endereço</a></li>
                                <li runat="server" id="liMenuCadastrarTelefones"><a href="MenuEmpresaTelefones.aspx"
                                    title="Cadastrar Telefones" style="width: 206px;">Cadastrar Telefones</a></li>
                                <li runat="server" id="liMenuAlterarSenhaEmpresa"><a href="MenuEmpresaAlterarSenha.aspx"
                                    title="Alterar Senha" style="width: 206px;">Alterar Senha</a></li>
                                <li runat="server" id="liMenuAlterarLinhaEmpresa"><a href="MenuEmpresaLinha.aspx"
                                    title="Cadastro de Linhas" style="width: 206px;">Cadastro de Linhas</a></li>
                                <li runat="server" id="liMenuCadastroParadaEmpresa"><a href="MenuEmpresaParada.aspx"
                                    title="Cadastro de Paradas" style="width: 206px;">Cadastro de Paradas</a></li>
                                <li runat="server" id="liMenuHoraLinhaEmpresa"><a href="MenuEmpresaHorario.aspx"
                                    title="Cadastro de Horarios das Linhas" style="width: 206px;">Cadastro de Horarios
                                    das Linhas</a></li>
                                <li runat="server" id="liMenuEmpresaVeiculo"><a href="#" title="Cadastro de Veículos"
                                    style="width: 206px; background-color: #3a1300; border-color: #C0C0C0; border-style: solid;
                                    font: bold 14px Trebuchet MS; color: #ffffff; text-decoration: none; background-position: 0 100px;">
                                    Cadastro Veículos</a></li>
                                <li runat="server" id="liMenuEmpresaLinhaParada"><a href="MenuEmpresaLinhaParada.aspx"
                                    title="Cadastro de Linha/Parada" style="width: 206px;">Cadastro de Linha/Parada</a></li>


                            </ul>
                            <p>
                                &nbsp;</p>
                        </td>
                    </tr>
                </table>
            </td>
            <td style="width: 10%">
            </td>
            <td style="width: 90%">
                <div>
                    <asp:ScriptManager ID="ScriptManager1" runat="server">
                    </asp:ScriptManager>
                    <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel1">
                        <ProgressTemplate>
                            <asp:Image ID="Image1" runat="server" ImageUrl="~/Content/gifs/wait_gif.gif" />
                        </ProgressTemplate>
                    </asp:UpdateProgress>
                    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                        <ContentTemplate>
                            <table style="width: 100%;">
                                <tr>
                                    <td colspan="3">
                                        <span class="failureNotification">
                                            <asp:Literal ID="ErrorMessage" runat="server"></asp:Literal>
                                        </span>
                                        <asp:ValidationSummary ID="LoginUserValidationSummary" runat="server" CssClass="failureNotification"
                                            ValidationGroup="EmpresaValidationGroup" />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style3">
                                        <asp:Label ID="Label1" runat="server" Font-Names="verdana" Font-Size="12px" ForeColor="#203360"
                                            Text="Placa do veículo"></asp:Label>
                                        :</td>
                                    <td class="style2">
                                        <asp:TextBox ID="TextBoxPlaca" runat="server" Height="30px" BorderColor="#9aafca"
                                            Font-Size="14px" Width="312px"></asp:TextBox>
                                    </td>
                                    <td rowspan="2">
                                        <asp:Button ID="ButtonAdicionarVeiculo" runat="server" OnClick="ButtonAdicionarVeiculo_Click"
                                            BackColor="#6ea954" BorderColor="#6ea954" ForeColor="White" Height="30px" Width="100px"
                                            Text="Adicionar" />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style3">
                                        <asp:Label ID="Label2" runat="server" Font-Names="verdana" Font-Size="12px" ForeColor="#203360"
                                            Text="Linha do veículo"></asp:Label>
                                        :</td>
                                    <td class="style2">
                                        <asp:DropDownList ID="DropDownListLinhas" runat="server" Height="30px" BorderColor="#9aafca"
                                            Font-Size="14px" Width="315px">
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="3">
                                        <br />
                                        <asp:GridView ID="GridViewVeiculo" runat="server" AutoGenerateColumns="False" CellPadding="4"
                                            ForeColor="#333333" GridLines="None" OnRowCommand="GridViewVeiculo_RowCommand"
                                            OnRowDataBound="GridViewVeiculo_RowDataBound" OnRowDeleting="GridViewVeiculo_RowDeleting"
                                            OnRowEditing="GridViewVeiculo_RowEditing" Width="81%">
                                            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                                            <Columns>
                                                <asp:BoundField DataField="Placa" HeaderText="Placa">
                                                    <ItemStyle Width="30px" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="Linha" HeaderText="Linha">
                                                    <ItemStyle Width="80%" />
                                                </asp:BoundField>
                                                <asp:TemplateField>
                                                    <ItemTemplate>
                                                        <asp:ImageButton ID="ImageButtonExcluir" runat="server" CommandName="excluir" ImageUrl="~/Content/Imagens/DeleteRed.png" />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:CommandField ButtonType="Image" EditImageUrl="~/Content/Imagens/edit-icon.png"
                                                    ShowEditButton="True" />
                                            </Columns>
                                            <EditRowStyle BackColor="#999999" />
                                            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                            <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" HorizontalAlign="Left" />
                                            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                                            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                                            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                                            <SortedAscendingCellStyle BackColor="#E9E7E2" />
                                            <SortedAscendingHeaderStyle BackColor="#506C8C" />
                                            <SortedDescendingCellStyle BackColor="#FFFDF8" />
                                            <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
                                        </asp:GridView>
                                    </td>
                                </tr>
                            </table>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </div>
                <br />
                <asp:Button ID="ButtonSalvar" runat="server" Text="Salvar" BackColor="#6ea954" BorderColor="#6ea954"
                    ForeColor="White" Height="30px" Width="100px" OnClick="ButtonSalvar_Click" />
            </td>
        </tr>
    </table>
    </form>
    <hr style="color: #ccc" />
    <center style="color: #999; font-size: 12px;">
        Vem Tranporte - Sistema de Trasnporte Inteligente - 2011
    </center>
    <br />
</body>
</html>
